<load target="filter/insert_wiki.xml" />
<load target="js/wiki_admin.js" />
<include target="header.html" />

	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">
			<form action="./" method="post" ruleset="insert_wiki" enctype="multipart/form-data" class="form">
				<input type="hidden" name="page" value="{$page}" />
				<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
				<input type="hidden" name="act" value="procWikiAdminInsertWiki" />
				<input type="hidden" name="module" value="wiki" />
			    <input type="hidden" name="success_return_url" value="{getUrl('act','dispWikiAdminInsertWiki', 'module_srl', $module_info->module_srl)}" cond="$module_info->module_srl" />
			    <input type="hidden" name="success_return_url" value="{getUrl('act','dispWikiAdminContent')}" cond="!$module_info->module_srl" />	
                <input type="hidden" name="mid" value="{$module_info->mid}" cond="$logged_info->is_admin!='Y'" />
					<table cellspacing="0" cellpadding="0" class="xe-ui-form-table">
						<tr cond="$logged_info->is_admin=='Y'">
							<td class="v-top">{$lang->mid}</td>
							<td>
								<input type="text" name="mid" value="{$module_info->mid}" class="xe-ui-panel-text" />
								<p class="desc">{$lang->about_mid}</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->module_category}</p></td>
							<td>
								<p>
									<select name="module_category_srl" class="xe-ui-panel-select">
										<option value="0">{$lang->notuse}</option>
										<option loop="$module_category=>$key,$val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
									</select>
									<label>{$lang->about_module_category}</label>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->use_comment}</p></td>
							<td>
								<p>
									<select title="" name="use_comment" class="xe-ui-panel-select">
										<option value="N" selected="selected"|cond="$module_info->use_comment=='N'">{$lang->notuse}</option>
										<option value="Y" selected="selected"|cond="$module_info->use_comment!='N'">{$lang->use}</option>
									</select>
									<label>{$lang->about_use_comment}</label>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->browser_title}</p></td>
							<td>
								<p>
									<input title="{$lang->about_browser_title}" type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="xe-ui-panel-text" id="browser_title"/>
									<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray"><span>{$lang->cmd_find_langcode}</span></a>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top"><p>{$lang->markup_type}</p></td>
							<td>
								<p>
									<select name="markup_type" class="xe-ui-panel-select">
										<option loop="$wiki_markup_list=>$markup" value="{$markup}" selected="selected"|cond="$module_info->markup_type==$markup"><!--@ echo $lang->{$markup}; --><!--@end--></option>
									</select>
								</p>
								<p class="desc">{$lang->about_markup_type}</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap">{$lang->layout}</td>
							<td>
								<select name="layout_srl" class="xe-ui-panel-select">
									<option value="0">{$lang->notuse}</option>
									<option loop="$layout_list=>$key,$val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title}({$val->layout})</option>
								</select>
								<p class="desc">{$lang->about_layout}</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->skin}</p></td>
							<td>
								<p>
									<select name="skin" class="xe-ui-panel-select">
										<option loop="$skin_list=>$key,$val" value="{$key}" selected="selected"|cond="$module_info->skin==$key||(!$module_info->skin && $key=='xe_wiki')">{$val->title}</option>
									</select>
									<label>{$lang->about_skin}</label>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->mobile_view}</p></td>
							<td>
								<p>
									<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" />
									<label>{$lang->about_mobile_view}</label>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->mobile_layout}</p></td>
							<td>
								<p>
									<select name="mlayout_srl" id="layout_srl" class="xe-ui-panel-select">
										<option value="0">{$lang->notuse}</option>
										<option loop="$mlayout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->mlayout_srl== $val->layout_srl">{$val->title} ({$val->layout})</option>
									</select>
								</p>
								<p class="desc">{$lang->about_layout}</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->mobile_skin}</p></td>
							<td>
								<p>
									<select name="mskin" id="mskin" class="xe-ui-panel-select">
										<option loop="$mskin_list=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->mskin== $key || (!$module_info->skin && $key=='xe_wiki')">{$val->title}</option>
									</select>
									<label>{$lang->about_skin}</label>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->description}</p></td>
							<td>
								<p>
									<textarea title="{$lang->about_description}" cols="50" rows="3" name="description" class="xe-ui-panel-textarea">{htmlspecialchars($module_info->description)}</textarea>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->header_text}</p></td>
							<td>
								<p>
									<textarea title="{$lang->about_header_text}" cols="50" rows="3" name="header_text" class="xe-ui-panel-textarea" id="header_text">{htmlspecialchars($module_info->header_text)}</textarea>
									<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','header_text')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray"><span>{$lang->cmd_find_langcode}</span></a>
								</p>
							</td>
						</tr>
						<tr>
							<td class="v-top nowrap"><p>{$lang->footer_text}</p></td>
							<td>
								<p>
									<textarea title="{$lang->about_footer_text}" cols="50" rows="3" name="footer_text" class="xe-ui-panel-textarea" id="footer_text">{htmlspecialchars($module_info->footer_text)}</textarea>
									<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','footer_text')}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray"><span>{$lang->cmd_find_langcode}</span></a>
								</p>
							</td>
						</tr>
					</table>
			</form>
		</div>
		<div class="xe-ui-panel-controller">
        	<hr />
            <p class="center">
				<a href="#" onclick="jQuery('.form').submit();" class="xe-ui-button-gray">{$lang->cmd_registration}</a>            	
            </p>
		</div>
	</div>
</div>